package com.example.demo.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Menu  implements Serializable {
    @Id
    private Long id;
    private String name;
    private BigDecimal price;
    private Catalog catalog;
    private String description;
    /**
     * @yucs 2021/8/29 添加是否在售属性
     */
    private Byte onSale;
    private String imgUrl;
    private Byte isDelete;
    private String founder;
    private Date foundTime;
    private String updater;
    private Date updateTime;

    @Override
    public String toString() {
        return "Menu{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", price=" + price +
                ", catalog=" + catalog +
                ", description='" + description + '\'' +
                ", onSale='" + onSale + '\'' +
                ", imgUrl='" + imgUrl + '\'' +
                ", founder='" + founder + '\'' +
                ", foundTime=" + foundTime +
                ", updater='" + updater + '\'' +
                ", updateTime=" + updateTime +
                '}';
    }}
